package com.rd.student.ruanjian.class3.gaochenxi.NumberTwo;

import java.util.Scanner;

public class NumberJinZiTa {
      public static void main (String args[]) {
            int i,j,k,n;
            System.out.println("请输入层数");
            Scanner input = new Scanner(System.in);
            n = input.nextInt();
            for ( i=1 ; i<=n ; i++ ){
                  for ( j=0 ; j<n-i ; j++ ){
                        System.out.print("  ");
                  }
                  for ( k=1 ; k<=i ; k++ ){
                        System.out.print(k);
                  }
                  for ( k=i-1 ; k>=1 ; k-- ){
                        System.out.print(k);
                  }
                  System.out.println("");
            }
      }
}

